#ifndef _PLUGIN_BAT_H
#define _PLUGIN_BAT_H

#ifdef __cplusplus
extern "C"{
#endif


typedef struct
{
	unsigned int						m_u32FilterID;
	builder_section_t*					m_pstBatSection;
	unsigned int						m_u32SectionRecvCnt;
	unsigned char						m_au8SecRecvBitmap[256];
	unsigned int						m_u32TimeOut;
	unsigned int 						m_u32Process;
}builder_bat_control_t;

extern int PluginBatStart(builder_bat_control_t* pstBatRecvCntrl);
extern int PluginBatTick(builder_bat_control_t* pstBatRecvCntrl);
extern int PluginBatRecv(builder_bat_control_t* pstBatRecvCntrl, unsigned int hFilter, unsigned char* pu8Section);
extern int PluginBatGetProcess(builder_bat_control_t* pstBatRecvCntrl, unsigned int* pu32Process);
extern int PluginBatStop(builder_bat_control_t* pstBatRecvCntrl);
extern int PluginBatReset(builder_bat_control_t* pstBatRecvCntrl);
extern int PluginBatGetSections(builder_bat_control_t* pstBatRecvCntrl, builder_section_t** ppstBat);

#ifdef __cplusplus
}
#endif

#endif //_PLUGIN_BAT_H

